<?php


namespace app\common\controller;


use app\api\model\UserTrue;

class UserPhone
{

    /**
     * 添加记录到撞库为true的数据库
     * @param $phone 手机号码
     * @param $logo 商户标识
     * @param $type 添加类型
     */
    public function add_user_true($phone, $logo, $type)
    {
        $model = new UserTrue();
        $data = [
            'phone' => $phone,
            'phone_md5' => md5($phone),
            'logo' => $logo,
            'type' => $type,
            'add_time' => now_time()
        ];
        $model->create($data);
    }
}